import * as gameTypes from '../types/gameTypes' 

export function gameStart(initGameData: gameTypes.GameState) {
  return { 
    type: gameTypes.GAME_START,
    initGameData
  }
}

export function gameInputStep(inputIndex: number) {
  return {
    type: gameTypes.GAME_INPUT_STEP,
    inputIndex
  }
}

export function gameFinishAnswer() {
  return {
    type: gameTypes.GAME_FINISH_ANSWER,
    finished: true
  }
}

export function gameRestart() {
  return {
    type: gameTypes.GAME_RESTART
  }
}